package o;

import java.util.Arrays;

public class ers extends ert {
    private int ˋ;
    private int[] ˎ;
    private int[] ˏ;

    ers(int[] iArr) {
        Arrays.sort(iArr);
        ˏ(ˊ(iArr));
        ॱ(new int[ʻ()]);
        ˏ(new int[ʻ()]);
        ˋ(iArr);
    }

    private static int ˊ(int[] iArr) {
        int i = 1;
        if (iArr.length < 2) {
            return iArr.length;
        }
        int i2 = iArr[0];
        int i3 = 1;
        while (i < iArr.length) {
            if (iArr[i] != i2) {
                i2 = iArr[i];
                i3++;
            }
            i++;
        }
        return i3;
    }

    int ˋ() {
        return ʻ();
    }

    int[] ˊ() {
        return ˎ();
    }

    int[] ˏ() {
        return ॱ();
    }

    private void ˋ(int[] iArr) {
        if (iArr.length != 0) {
            int i = iArr[0];
            this.ˏ[0] = i;
            this.ˎ[0] = 1;
            if (iArr.length != 1) {
                int i2 = 0;
                int i3 = i;
                for (i = 1; i < iArr.length; i++) {
                    if (iArr[i] == i3) {
                        int[] iArr2 = this.ˎ;
                        iArr2[i2] = iArr2[i2] + 1;
                    } else {
                        i3 = iArr[i];
                        i2++;
                        this.ˏ[i2] = i3;
                        this.ˎ[i2] = 1;
                    }
                }
            }
        }
    }

    public int[] ˎ() {
        return (int[]) this.ˏ.clone();
    }

    public void ॱ(int[] iArr) {
        this.ˏ = (int[]) iArr.clone();
    }

    public int[] ॱ() {
        return (int[]) this.ˎ.clone();
    }

    public void ˏ(int[] iArr) {
        this.ˎ = (int[]) iArr.clone();
    }

    public int ʻ() {
        return this.ˋ;
    }

    public void ˏ(int i) {
        this.ˋ = i;
    }
}
